home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / CRMSerialDevices.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  1.7 KB  |  85 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CRMSerialDevices.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __CRMSERIALDEVICES__
  18. #define __CRMSERIALDEVICES__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #if GENERATINGPOWERPC
  31. #pragma options align=mac68k
  32. #endif
  33.  
  34. #ifdef __CFM68K__
  35. #pragma lib_export on
  36. #endif
  37.  
  38.  
  39. enum {
  40. /*     for the crmDeviceType field of the CRMRec data structure    */
  41.     crmSerialDevice                = 1,
  42. /*    version of the CRMSerialRecord below    */
  43.     curCRMSerRecVers            = 1
  44. };
  45.  
  46. /* Maintains compatibility w/ apps & tools that expect an old style icon    */
  47. struct CRMIconRecord {
  48.     long                            oldIcon[32];                /* ICN#    */
  49.     long                            oldMask[32];
  50.     Handle                            theSuite;                    /* Handle to an IconSuite    */
  51.     long                            reserved;
  52. };
  53. typedef struct CRMIconRecord CRMIconRecord;
  54.  
  55. typedef CRMIconRecord *CRMIconPtr, **CRMIconHandle;
  56.  
  57. struct CRMSerialRecord {
  58.     short                            version;
  59.     StringHandle                    inputDriverName;
  60.     StringHandle                    outputDriverName;
  61.     StringHandle                    name;
  62.     CRMIconHandle                    deviceIcon;
  63.     long                            ratedSpeed;
  64.     long                            maxSpeed;
  65.     long                            reserved;
  66. };
  67. typedef struct CRMSerialRecord CRMSerialRecord;
  68.  
  69. typedef CRMSerialRecord *CRMSerialPtr;
  70.  
  71.  
  72. #ifdef __CFM68K__
  73. #pragma lib_export off
  74. #endif
  75.  
  76. #if GENERATINGPOWERPC
  77. #pragma options align=reset
  78. #endif
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83.  
  84. #endif /* __CRMSERIALDEVICES__ */
  85.